<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
#div1 {
	border: 3px solid black; 
	height: 500px;
	margin: 200px auto;
	width: 500px;
}

#div1:before {
	content:" jkl";
	background-color: green;
}
#div1:after{
	content:" jkl";
	background-color: yellow;
}
</style>

</head>
<body>
	<div id="div1">123456</div>
</body>
</html>